//gu:

function ajax(type,url,data,func)
{
  $.ajax({ type: type, url: url, data: data,success: func });
}

function ajax2(type,url,data)
{
  $.ajax({ type: type, url: url, data: data});
}

// save to localstorage
function save(name,obj){
  localStorage[name] = JSON.stringify(obj)
}
// get form localstorage
function get(name){
  try{
  return JSON.parse( localStorage[name] )
  }catch(err){ return null;}
}
